import { ref } from 'vue'

import { imagePath } from '@/libs/file-utils'

/** 当前选择菜单项 */
const curHomeTarbarKey = ref<T_HomeTarbarKey>('home')

const homeTarbarList: {
  key: T_HomeTarbarKey
  title: string
  icon: string
}[] = [
  { key: 'home', title: '首页', icon: imagePath('main/tab-bar/icon-home.png') },
  { key: 'quiz', title: '蒜盘', icon: imagePath('main/tab-bar/icon-quiz.png') },
  { key: 'community', title: '蒜聊', icon: imagePath('main/tab-bar/icon-community.png') },
  { key: 'user', title: '我的', icon: imagePath('main/tab-bar/icon-user.png') },
]

export { curHomeTarbarKey, homeTarbarList }
